package top.yekongle;

import java.util.ArrayList;
import java.util.List;

public class Test {

    private final String name;

    public static void main(String[] args) {
        System.out.println("Hello World");

        display("hello", "world");

        List<String> list = new ArrayList<>();
        list.add("1");
        list.add("2");

        list.forEach(e-> System.out.println(e));
    }

    public Test(String testName) {
        this.name = testName;
        System.out.println(testName);
    }

    public static void display(String name, String age) {
        System.out.println(name);
    }
}
